cmake_minimum_required (VERSION 3.6)

project(drv_lcd)

file(GLOB SRC "simulator/*.c" "*.c")

add_library(${PROJECT_NAME} STATIC ${SRC})

target_include_directories(${PROJECT_NAME} PUBLIC "simulator")
include_directories(${SDL2_INCLUDE_DIRS})

find_package(SDL2 REQUIRED SDL2)
add_dependencies(${PROJECT_NAME} kernal_cmsis framework_log lvgl lv_drivers hal_lcd)
target_link_libraries(${PROJECT_NAME} kernal_cmsis framework_log lvgl lv_drivers SDL2 hal_lcd)
target_compile_options(${PROJECT_NAME} PRIVATE -g)

